package com.esiag.isidis.beans;

public class Trame{
	private byte[] message;
	private TrameInfo trameInfo;

	public Trame() {
		super();
		this.trameInfo = DefaultTrameInfo.getDefaultTrameInfo();
		this.message = new byte[trameInfo.getSize()];

	}
	
	public Trame(TrameInfo trameInfo) {
		super();
		this.trameInfo = trameInfo;
		this.message = new byte[trameInfo.getSize()];
	}

	public byte[] getMessage() {
		return message;
	}

	public void setMessage(byte[] message) {
		this.message = message;
	}
	
	public void setTrameInfo(TrameInfo trameInfo) {
		this.trameInfo = trameInfo;
	}
	
	public TrameInfo getTrameInfo() {
		return trameInfo;
	}
}
